package com.yanqu.road.entity.activity.newyearbag;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.DataStatus;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_c_new_year_bag_user_data")
public class NewYearBagUserData extends DataObject {

    @FieldTypeAnnotation(desc = "活动ID", select = true, update = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "玩家ID", select = true, update = true)
    private long userId;
    @FieldTypeAnnotation(desc = "累计奖励")
    private String allReward = "";


    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setOp(DataStatus.Update);
        }
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setOp(DataStatus.Update);
        }
    }

    public String getAllReward() {
        return allReward;
    }

    public void setAllReward(String allReward) {
        if (allReward == null) {
            return;
        }
        if (this.allReward == null || !this.allReward.equals(allReward)) {
            this.allReward = allReward;
            setOp(DataStatus.Update);
        }
    }

}
